package com.zygh.lz.controller;

import com.zygh.lz.entity.app.AppDumpTrailer;
import com.zygh.lz.service.ServiceStatusService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @program: zygh-transform
 * @description: 服务状态检测
 * @author: jhaol
 * @created: 2023/05/18 14:02
 */

@RestController
@RequestMapping("/serviceStatus")
@Api(tags = "服务状态检测")
public class ServiceStatusController {

    @Resource
    private ServiceStatusService serviceStatusService;

    @ApiOperation("坐标同步情况")
    @RequestMapping(value = "/coordinateSynchronizationStatus", method = RequestMethod.GET)
    public Object coordinateSynchronizationStatus() {
       return serviceStatusService.coordinateSynchronizationStatus();
    }

    @ApiOperation("接处警同步状态")
    @RequestMapping(value = "/alarmWorkSynchronizationStatus", method = RequestMethod.GET)
    public Object alarmWorkSynchronizationStatus() {
        return serviceStatusService.alarmWorkSynchronizationStatus();
    }

    @ApiOperation("违法数据同步状态")
    @RequestMapping(value = "/illegalDataSynchronizationStatus", method = RequestMethod.GET)
    public Object illegalDataSynchronizationStatus() {
        return serviceStatusService.illegalDataSynchronizationStatus();
    }




}
